Package com.cisco.pt.ipc.sim.impl
Class PingProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.PingProcessImpl
- All Implemented Interfaces:
IPCObject,PingProcess,Process
Information provided by the PKI file:
\class PingProcess
\brief PingProcess handles and manipulates ping processes.
\example network().getDevice("PC0").getProcess("IcmpProcess").getPingProcess(1)
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionPingProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Information provided by the PKI file:Information provided by the PKI file:getId()Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:voidstart()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
PingProcessImpl
public PingProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
start
public void start()Information provided by the PKI file:
\brief Starts the ping process.- Specified by:
startin interfacePingProcess
-
cancel
public void cancel()Information provided by the PKI file:
\brief Cancels the ping process.- Specified by:
cancelin interfacePingProcess
-
getId
Information provided by the PKI file:
\brief Returns the ping process ID. \return short, the ping process ID.- Specified by:
getIdin interfacePingProcess- Returns:
- Short Returns a Short
-
getDestinationIP
Information provided by the PKI file:
\brief Returns the destination IP address. \return ip, the destination IP address.- Specified by:
getDestinationIPin interfacePingProcess- Returns:
- IPAddress Returns a IPAddress
-
getSourceIP
Information provided by the PKI file:
\brief Returns the source IP address. \return ip, the source IP address.- Specified by:
getSourceIPin interfacePingProcess- Returns:
- IPAddress Returns a IPAddress
-
getLastIP
Information provided by the PKI file:
\brief Returns the last IP address in the ping process. \return ip, the last IP address in the ping process.- Specified by:
getLastIPin interfacePingProcess- Returns:
- IPAddress Returns a IPAddress
-
isBroadcast
public boolean isBroadcast()Information provided by the PKI file:
\brief Returns true if the ping process is broadcasted, otherwise false. \return bool, true if the ping process is broadcasted, otherwise false.- Specified by:
isBroadcastin interfacePingProcess- Returns:
- boolean Returns a boolean
-
getTotalCount
public int getTotalCount()Information provided by the PKI file:
\brief Returns the total number of pings. \return int, the total number of pings.- Specified by:
getTotalCountin interfacePingProcess- Returns:
- int Returns a int
-
getSentCount
public int getSentCount()Information provided by the PKI file:
\brief Returns the number of echo requests sent. \return int, the number of echo requests sent.- Specified by:
getSentCountin interfacePingProcess- Returns:
- int Returns a int
-
getReceivedCount
public int getReceivedCount()Information provided by the PKI file:
\brief Returns the number of echo replies received. \return int, the number of echo replies received.- Specified by:
getReceivedCountin interfacePingProcess- Returns:
- int Returns a int
-
getTimeout
public int getTimeout()Information provided by the PKI file:
\brief Returns the timeout value. \return int, the timeout value.- Specified by:
getTimeoutin interfacePingProcess- Returns:
- int Returns a int
-
getMinDelay
public int getMinDelay()Information provided by the PKI file:
\brief Returns the minimum delay value. \return int, the minimum delay value.- Specified by:
getMinDelayin interfacePingProcess- Returns:
- int Returns a int
-
getMaxDelay
public int getMaxDelay()Information provided by the PKI file:
\brief Returns the maximum delay value. \return int, the maximum delay value.- Specified by:
getMaxDelayin interfacePingProcess- Returns:
- int Returns a int
-
getLastDelay
public int getLastDelay()Information provided by the PKI file:
\brief Returns the last delay value. \return int, the last delay value.- Specified by:
getLastDelayin interfacePingProcess- Returns:
- int Returns a int
-
getTotalDelay
public int getTotalDelay()Information provided by the PKI file:
\brief Returns the total delay value. \return int, the total delay value.- Specified by:
getTotalDelayin interfacePingProcess- Returns:
- int Returns a int
-
getLastTtl
public int getLastTtl()Information provided by the PKI file:
\brief Returns the last TTL value. \return int, the last TTL value.- Specified by:
getLastTtlin interfacePingProcess- Returns:
- int Returns a int
-